Set Variable ISWINDOWS64BIT to FALSE
Get System Setting Windows in 64 bit Mode into ISWINDOWS64BIT
if Variable ISWINDOWS64BIT not Equals TRUE
  MessageBox: $TITLE$ Setup, $TITLE$ requires a 64 bit operating system. Please upgrade your operating system and try again.$NEWLINE$$NEWLINE$$TITLE$ Setup cannot continue.
  Terminate Installation
end
Set x64 - Native 64 bit Windows, AMD64 and EM64T Architectures - installation mode
Set Variable VC91_X64 to TRUE
Get Common Folder Location System->Windows Directory into WINDIR
Find All Files in path $WINDIR$\WinSxS\mfc90.dll (include subfolders), write result into variable VC91_X64
if Variable VC91_X64 Equals 
  Set Variable VC91_X64 to FALSE
  GoTo Label: Post Scan VC91_X64
else
  Set Variable VC91_REMAINDER_X64 to $VC91_X64$
end
label: Scan VC91_X64
Parse String $VC91_REMAINDER_X64$ into Variables VC91_FILE_X64 and VC91_REMAINDER_X64 (Split at first occurrence of pattern)
Check File Version $VC91_FILE_X64$ into Variable VC91_X64
if Variable VC91_X64 Equals TRUE
  GoTo Label: Post Scan VC91_X64
end
if Variable VC91_REMAINDER_X64 Equals 
  GoTo Label: Post Scan VC91_X64
else
  GoTo Label: Scan VC91_X64
end
label: Post Scan VC91_X64
if Variable VC91_X64 Equals FALSE
  Set Variable PREREQ to TRUE
  Set Variable PRELIST to $PRELIST$$NEWLINE$Microsoft Visual C++ Runtime 9.0 (includes ATL and MFC) Service Pack 1 (x64)
end
Set Win32 - Native 32 bit Windows and Windows 32 on Windows 64 (WOW64) - installation mode
 
